<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<ComputerShopE3.Models.CHI_TIET_GIO_HANG>>" %>

    <h2>Gio hang cua ban</h2>

    <table>
    <% foreach (var item in Model) { %>
    
        <tr>
                <%= Html.ActionLink(item.SAN_PHAM.TenSanPham, "Details", item.SAN_PHAM.LOAI_SAN_PHAM.TenLoaiSanPham, new { id = item.SAN_PHAM.id }, null)%>
                *
                <%= Html.Encode(item.SoLuong) %>
                =
                <%= Html.Encode(item.TongTien) %>
                VND.
        </tr>
    
    <% } %>

    </table>
    
    <p>
        Tong Tien:
        <%= Html.Encode(ViewData["TongTien"]) %>
        VND.
    </p>